//
//  CommonTools.swift
//  WeiBo
//
//  Created by Apple on 16/9/20.
//  Copyright © 2016年 KY. All rights reserved.
//

import UIKit

//  切换根视图控制器
let SwitchRootVCNotification = "SwitchRootVCNotification"

//  获取当前屏幕的宽度
let ScreenWidth = UIScreen.main.bounds.width
//  获取当前屏幕的高度
let ScreenHeight = UIScreen.main.bounds.height


//  随机颜色
func RandomColor() -> UIColor {
    
    let red = arc4random() % 256
    let green = arc4random() % 256
    let blue = arc4random() % 256
    
    
    return UIColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
    
}
